import { defineConfig } from 'vite'
import uni from "@dcloudio/vite-plugin-uni"
import AutoImport from 'unplugin-auto-import/vite'
import uniReadPagesV3Plugin from './sheep/router/utils/uni-read-pages-v3';
import path from 'path';
export default defineConfig({
	plugins: [
		uni(),
		AutoImport({
			imports: ['vue','uni-app']
		}),
		uniReadPagesV3Plugin({
			pagesJsonDir: path.resolve(__dirname, './pages.json'),
			includes: ['path', 'aliasPath', 'name', 'meta'],
		})
	]
})